import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import 'normalize.css'
import '@/style/reset.css'
import './style/iconfont.css'
createApp(App).use(store).use(router).use(ElementPlus).mount('#app')
function initFontSize(){
    const oHtml=document.querySelector("html");
    const width=oHtml.clientWidth;
    oHtml.style.fontSize=10*(width/1920)+"px";
    if(width<=1440){
      oHtml.style.fontSize=10*(1440/1920)+"px";
    }
  }
  window.addEventListener("load",initFontSize);
  window.addEventListener("resize",initFontSize);